
	
	u "data/panel_mafiaconsmig", clear
	
	drop if iddecade==1|iddecade==4 // 1951 | 1981

		
**-----------------------------------------------------

			* Appendix H
			*Characterizing results

**-----------------------------------------------------
	
*Table H.1: Competition for hiring versus competition against entrants

*Main
	su newspc
	local meandv=round(r(mean), 0.001)
	xtivreg2 newspc dec2-dec3 (zempcp zmigshare zem = zssc zssmig zss) ipop, fe first savefirst cluster(municipalities) 
			mat t=e(first)
			local f3=round(t[8,3], 0.1)
			local ar=round(e(archi2), 0.1)
		outreg2 using "tables/tableH1", replace tex label dec(3) keep(zempcp zmigshare zem) addtext(City Decade FE, Yes) adds(SW F-Stat, `f3', A-R Wald test, `ar', Mean DV, `meandv') nocons nor2
	
	*Firms
	su newspc
	local meandv=round(r(mean), 0.001)
	xtivreg2 newspc dec2-dec3 (zfirmpc zmigshare zef = zsscf zssmig zssf) ipop, fe first cluster(municipalities)
			mat t=e(first)
			local f3=round(t[8,3], 0.1)
			local ar=round(e(archi2), 0.1)
		outreg2 using "tables/tableH1", tex label dec(3) keep(zfirmpc zmigshare zef) addtext(City Decade FE, Yes) adds(SW F-Stat, `f3', A-R Wald test, `ar', Mean DV, `meandv') nocons nor2
	
	
	
	
	
*Table H.2: Effect on mafia presence by number of forcibly resettled mafia members

xtivreg2 newspc dec2-dec3 ( zempcp zmigshare zem = zssc zssmig zss) if confinati>0, fe first savefirst cluster(municipalities)
		mat t=e(first)
		local fstat=round(t[8,3], 0.01)
		local ar=round(e(archi2), 0.1)
		outreg2 using "tables/tableH2", tex replace label dec(3) keep(zempcp zmigshare zem) addtext(City Decade FE, Yes) adds(SW F-Stat, `fstat', A-R Wald test, `ar') nocons nor2 ctitle("Forcibly resettled","mafiosi >0")
	
		su newspc
		local meandv=round(r(mean), 0.001)
		xtivreg2 newspc dec2-dec3 ( zempcp zmigshare zem = zssc zssmig zss) if confinati>35 , fe first savefirst cluster(municipalities)
		mat t=e(first)
		local fstat=round(t[8,3], 0.01)
		local ar=round(e(archi2), 0.1)
		outreg2 using "tables/tableH2", tex label dec(3) keep(zempcp zmigshare zem) addtext(City Decade FE, Yes) adds(SW F-Stat, `fstat', A-R Wald test, `ar') nocons nor2 ctitle("Forcibly resettled","mafiosi >50pc")
	

		xtivreg2 newspc dec2-dec3 ( zempcp zmigshare zem = zssc zssmig zss) if confinati>48, fe first savefirst cluster(municipalities)
		mat t=e(first)
		local fstat=round(t[8,3], 0.01)
		local ar=round(e(archi2), 0.1)
		outreg2 using "tables/tableH2", tex label dec(3) keep(zempcp zmigshare zem) addtext(City Decade FE, Yes) adds(SW F-Stat, `fstat', A-R Wald test, `ar') nocons nor2 ctitle("Forcibly resettled","mafiosi >75pc")
	